{extend name="public/base" /}

{block name="title"}<title>{$Think.lang.list}</title>{/block}

{block name="pjax_container"}
<div class="hry-content-wrapper">
<section class="content-header">
    <ol class="breadcrumb">
        <li>财务管理</li><li class="active">提现记录</li>
    </ol>
</section>
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="hry-form-wrapper">
                <div class="box-header with-border" style="padding:15px !important;">
					<h3 class="box-title"></h3>
					<div class="pull-left">
						
					</div>
                    {include file="public/getcash_search2" /}
                </div>
                <div class="box-body table-responsive">
                    <table class="table table-bordered table-hover table-sort">
                        <tr>
                            <th>{$Think.lang.id}{:table_sort('id')}</th>
                            <th>{$Think.lang.username}</th>
                            <th>手机号</th>
							<th>{$Think.lang.order_sn}</th>
							<th>{$Think.lang.bank_truename}</th>
							<th>银行预留手机号</th>
                            <th>{$Think.lang.bank_name}</th>
                            <th>{$Think.lang.bank_number}</th>
							<th>{$Think.lang.money}{:table_sort('money')}</th>
                            <th>{$Think.lang.status}</th>
							<th>{$Think.lang.date}{:table_sort('date')}</th>
                            <th width="150">{$Think.lang.action}</th>
                        </tr>
                        {volist name="dataList" id="vo"}
                        <tr>
                            <td style="vertical-align:middle">{$vo.id}</td>
                            <td style="vertical-align:middle">{$vo.username}</td>
                            <td style="vertical-align:middle">{$vo.user_mobile}</td>
							<td style="vertical-align:middle">{$vo.order}</td>
                            <td style="vertical-align:middle">{$vo.bank_truename}</td>
                            <td style="vertical-align:middle">{$vo.mobile}</td>
							<td style="vertical-align:middle">{$vo.bank_name}</td>
							<td style="vertical-align:middle">{$vo.bank_number}</td>
                            <td style="vertical-align:middle">{$vo.money}</td> 
                            <td style="vertical-align:middle">
							{if condition="$vo.status == 2"}
							<span class="hry-tag label-success">已打款</span>
							{elseif condition="$vo.status == 1"}
							<span class="hry-tag label-wait">待打款</span>
							{elseif condition="$vo.status == 3"}
							<span class="hry-tag label-error">已拒绝</span>
							{else}
							<span class="hry-tag label-shenhe">待审核</span>
							{/if}
							</td>
							<td style="vertical-align:middle">{$vo.date}</td>
                            <td style="vertical-align:middle">
                                {:authAction(CONTROLLER_NAME.'/look', 'edit', ['id' => $vo.id])} 
								<!--{:authAction(CONTROLLER_NAME.'/remove', 'delete', $vo.id)} -->
                            </td>
                        </tr>
                        {/volist}
                    </table>
                </div>
                <div class="box-footer clearfix">
                    {$dataList->render()}
                </div>
            </div>
        </div>
    </div>
</section>
</div>
<script type="text/javascript">
$(function(){
    /*ajax页面加载icheck，有该控件的页面才需要*/
    $('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({
        checkboxClass: 'icheckbox_minimal-blue',
        radioClass: 'iradio_minimal-blue'
    });
	
    /*ajax页面加载icheck，有该控件的页面才需要*/
    $(".select2").select2({language:"zh-CN"});
    
    /*全选-反选*/
    $('.checkbox-toggle').on('ifChecked', function(event){
        var _this = $(this);
        var _table = _this.closest('.table');
        _table.find("tr td input[type='checkbox']").iCheck("check");
    });
    $('.checkbox-toggle').on('ifUnchecked', function(event){
        var _this = $(this);
        var _table = _this.closest('.table');
        _table.find("tr td input[type='checkbox']").iCheck("uncheck");
    });
    
    $('.editable').editable({
        emptytext: "empty",
        params: function(params) {      //参数
            var data = {};
            data['id'] = params.pk;
            data[params.name] = params.value;
            return data;
        },
        success: function(response, newValue) {
            var res = $.parseJSON( response );
            if(res.status == 1){
            }else{
                return res.info;
            }
        }
    });
    
    {if condition=" $rest_login == 1 "}
    restlogin('{$rest_login_info}');   //登录超时
    {/if}
})
</script>
{/block}